#ifndef GAMELOGIC_H
#define GAMELOGIC_H

#define IN_LINE 5

enum RESULT
{
    CONTINUE,
    X_WIN,
    O_WIN,
    DRAW,
    BAD_MOVE
};

enum FIELD
{
    FREE,
    X,
    O
};

void new_game(const size_t size);
void end_game();
RESULT make_move(const unsigned int x, const unsigned int y);
RESULT check_line(const unsigned int *x, const unsigned int *y);

static FIELD **gameField;
static size_t fieldSize;
static bool isXmove;

#endif //GAMELOGIC_H